package cn.com.cifi.mars.mapper.mars;

import cn.com.cifi.mars.bean.vo.price.GroupPriceVersionListVO;
import cn.com.cifi.mars.entity.PriceValueOrg;
import cn.com.cifi.mars.entity.PriceVersion;
import cn.com.cifi.mars.entity.PriceVersionGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 集团审批价格版本表 Mapper 接口
 * </p>
 *
 * @author yyd
 * @since 2021-07-07
 */
public interface PriceVersionGroupMapper extends BaseMapper<PriceVersionGroup> {

    PriceVersion selectNewstVersionByStageId(@Param("projectFid") String projectFid, @Param("isDel") int isDel);

    List<PriceValueOrg> selectVersionDetailByVersionId(@Param("versionId") String versionId, @Param("isDel") int isDel);

    PriceVersionGroup selectLastVersionByStageId(@Param("projectFid") String projectfId, @Param("isPresident") Integer isPresident, @Param("isDel") int isDel);

    List<GroupPriceVersionListVO> selectGroupPriceVersionList(@Param("projectId") String projectId);

    List<PriceVersionGroup> selectByVersionId(@Param("versionId") String versionId);
}
